package card;

public class Card {
    private String suit;//花色
    private int count;//点数
    //构造方法
    public Card(String suit, int count) {
        this.suit = suit;
        this.count = count;
    }

    //对外公开方法
    public void setSuit(String suit) {
        this.suit = suit;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getSuit() {
        return suit;
    }

    public int getCount() {
        return count;
    }

    @Override
    public String toString() {
        return
                //"花色:"+this.suit+":"+"点数:"+this.count+" ";
        this.suit+":"+this.count+" ";
    }
}
